<?php

declare(strict_types=1);

namespace app\seller\validate\admin;

use sheep\validate\Backend;

class Brand extends Backend
{
    protected $rule = [
//        'organ_id' => 'require',
        'type' => 'require',
        'logo' => 'require',
        'trademark_registration_number' => 'require',
        'qualification_certificate' => 'require',
        'category_ids' => 'require',
        'expiration_date' => 'require',
    ];

    protected $message  =   [
//        'organ_id.require'     => '上传规则错误',
        'type.require'     => '店铺类型不正确',
        'logo.require'     => '请上传品牌logo',
        'trademark_registration_number.require'     => '请填写商标注册号',
        'qualification_certificate.require'     => '请上传资质证书',
        'category_ids.require'     => '请选择商品分类',
        'expiration_date.require'     => '请选择有效期',
    ];


    protected $scene = [
        'add'  =>  ['type', 'logo', 'trademark_registration_number', 'qualification_certificate', 'category_ids'],
    ];
}
